package com.gxa.mapper;

import com.gxa.common.JsonResult;
import com.gxa.common.PageRecv;
import com.gxa.common.R;
import com.gxa.pojo.Recycle;
import com.gxa.pojo.RepairOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairOrderMapper {
    //添加工单方法
    public int addRepairOrder(RepairOrder repairOrder);
    //查询工单方法
    public List<RepairOrder> queryRepairOrder(PageRecv pageRecv);
    //查询工单总条数
    public Integer queryCountRepairOrder(PageRecv pageRecv);
    //修改工单方法
    public int updateRepairOrder(RepairOrder repairOrder);
    //高级搜索工单方法
    public List<RepairOrder> selectRepairOrder(PageRecv pageRecv);
    //高级搜索工单总条数
    public Integer selectCountRepairOrder(PageRecv pageRecv);
    //删除工单方法
    public int deleteRepairOrder(Integer repair_id);
    //搜索
    public List<RepairOrder> selectRepairOrderByOther(PageRecv pageRecv);
    //搜索结果总条数
    public Integer selectCountRepairOrderByOther(PageRecv pageRecv);
    //数据统计条数
    public Integer dataStatisticsCount(@Param("initiate_employee_name") String initiate_employee_name,@Param("start_date") String start_date,@Param("stop_date") String stop_date);
    //按照客户id查询工单id
    public List<Integer> selectRepairByCustomerId(@Param("customer_id") Integer customer_id);
     //按照客户id删除工单数据
    public int deleteByCustomerId(@Param("customer_id")Integer customer_id);

}
